<?php
/**
 * ActivityContest.php
 * description:
 * Created by www.
 * User: SCF
 * Date: 2018/12/8 10:35
 *
 */

namespace App\Console\Commands\Activity;
use App\Services\ActivityService;

class ActivityRebet extends BaseActivity
{
    protected $signature = self::PREFIX . 'activity_rebet {--hall_id=} {--prizeRepair=}';

    protected $description = '回水活动活动加载数据';

    public $activityName = "回水活动";

    public $activityKey = "activity:rebet";

    public $templateID = 5;
    /**
     * 获取需要派奖的数据
     */
    public function statisticsData($activity,$hall_id,$start,$end){
        $this->info($this->activityName.$activity['id']."执行统计了,统计范围为{$start}=={$end},统计时间为:".date("Y-m-d H:i:s"));
        //回水活动数据
        ActivityService::addRebetData($activity,$hall_id,$start,$end);
    }

}